package com.java.cloud.pay.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.java.common.utils.PageUtils;
import com.java.common.utils.Query;

import com.java.cloud.pay.dao.PaymentDao;
import com.java.cloud.pay.entity.Payment;
import com.java.cloud.pay.service.PaymentService;

@Service("paymentService")
public class PaymentServiceImpl extends ServiceImpl<PaymentDao, Payment> implements PaymentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<Payment> page = this.page(
                new Query<Payment>().getPage(params),
                new QueryWrapper<>()
        );

        return new PageUtils(page);
    }

}